package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.domain.Dish;
import com.itheima.reggie.domain.Setmeal;
import com.itheima.reggie.domain.SetmealDish;
import com.itheima.reggie.dto.SetmealDto;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface SetmealService extends IService<Setmeal> {

    @Transactional
    void addSetmeal(SetmealDto setmealDto);

    Page<Setmeal> findPage(int page, int pageSize,String name);


    void deleteIds(Long[] ids);

    SetmealDto selectById(Long id);

    @Transactional
    void updateSetmeal(SetmealDto setmealDto);

    List<Setmeal> findStmeals(Setmeal setmeal);

    List<SetmealDish> getDishs(Long id);
}
